package  
{
	import flash.events.MouseEvent;
	import flash.events.StatusEvent;
	import flash.text.TextField;
	/**
	 * ...
	 * @author ElviS
	 */
	public class GameInfo extends GameScreen 
	{
		//Экран вывода результатов.
		private var textResult:TextField;
		var gameInfo:GameInfoScreen;
		var playTime:String = "";
		
		public function GameInfo() 
		{
			gameInfo = new GameInfoScreen();
			
			addChild(gameInfo);
			textResult = gameInfo["textResult"];
		}
		
		override public function start():void 
		{
			textResult.htmlText = playTime;
			//addEventListener(MouseEvent.CLICK, onClick); - если будет необходимость прикрутить кнопку "Начать с начала".
		}
		
		private function onClick(e:MouseEvent):void 
		{
			//dispatchEvent(new StatusEvent(StatusEvent.STATUS, false, false, "", "gotoMenu"));
		}
		
		override public function stop():void 
		{
			removeEventListener(MouseEvent.CLICK, onClick);
		}
		
		public function set time(value:String):void
		{
			playTime = value;
		}
		
		public function get time():String
		{
			return playTime;
		}
		
	}

}